]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Revert "main: Notify gnome-session when we're ready"
authorAdrian Vovk <adrianvovk@gmail.com>
Wed, 9 Jul 2025 00:56:18 +0000 (20:56 -0400)
committerAdrian Vovk <adrianvovk@gmail.com>
Tue, 22 Jul 2025 02:44:29 +0000 (22:44 -0400)
This reverts commit 1747a59aa5d44f4d7b74e1f1fee1d48174a1ce5a.

gnome-session is no longer a service manager, and thus doesn't need to
be notified of our readiness like this. We now do this exclusively
through systemd

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3806>

js/ui/main.js

index 1fc75e130f5f63aa78d3e72f2540bee5b2e32062..76b917f48c17df8c3cebbffc33becb81c145e313 100644 (file)
@@ -319,7 +319,6 @@ async function _initializeUI() {
     GLib.idle_add(GLib.PRIORITY_DEFAULT, () => {
         Shell.util_sd_notify();
         global.context.notify_ready();
-        _notifyGnomeSessionReady();
         return GLib.SOURCE_REMOVE;
     });
 
@@ -384,20 +383,6 @@ async function _initializeUI() {
     });
 }
 
-async function _notifyGnomeSessionReady() {
-    try {
-        let params = GLib.Variant.new('(ss)', ['org.gnome.Shell.desktop', '']);
-        await Gio.DBus.session.call(
-            'org.gnome.SessionManager',
-            '/org/gnome/SessionManager',
-            'org.gnome.SessionManager',
-            'RegisterClient', params, null,
-            Gio.DBusCallFlags.NONE, -1, null);
-    } catch (e) {
-        log(`Error notifying gnome-session that we're ready: ${e.message}`);
-    }
-}
-
 function _handleShowWelcomeScreen() {
     const lastShownVersion = global.settings.get_string(WELCOME_DIALOG_LAST_SHOWN_VERSION);
     if (Util.GNOMEversionCompare(WELCOME_DIALOG_LAST_TOUR_CHANGE, lastShownVersion) > 0) {